const RoleController = require('../app/controllers/role')
const Util = require('../lib/utils')
class Role {
    constructor() {
        this.init()
    }
    async init () {
        while (true) {
            let res = await RoleController.build()
            if (!res) {
                console.log('构建角色完成，等待5s.....')
                await Util.wait(5000)  
            }
        }
    }
}

module.exports = new Role()